<%@page import="util.Constants" %>

<div id="left-navigation">
    <%
    String subPageName = (String) session.getAttribute("subPage");
    %>
    <a onclick="redirect(frmIndex, '<%=Constants.ADMIN_PAGE_NAME%>',
        '<%=Constants.COMPANY_INFO_PAGE_NAME%>')"
        class="<%   if(Constants.COMPANY_INFO_PAGE_NAME.equalsIgnoreCase(subPageName)) {
                        out.print("select");
                    } else {
                        out.print("normal");
                    }
                %>">
        Company Information
    </a>
    <a onclick="redirect(frmIndex, '<%=Constants.ADMIN_PAGE_NAME%>',
        '<%=Constants.PROJECT_MANAGEMENT_PAGE_NAME%>', '<%=Constants.PROJECT_LIST%>')"
        class="<%   if(Constants.PROJECT_MANAGEMENT_PAGE_NAME.equalsIgnoreCase(subPageName)) {
                        out.print("select");
                    } else {
                        out.print("normal");
                    }
                %>">
        Project Management
    </a>
    <a onclick="redirect(frmIndex, '<%=Constants.ADMIN_PAGE_NAME%>',
        '<%=Constants.USER_MANAGEMENT_PAGE_NAME%>', '<%=Constants.USER_LIST%>')"
        class="<%   if(Constants.USER_MANAGEMENT_PAGE_NAME.equalsIgnoreCase(subPageName)) {
                        out.print("select");
                    } else {
                        out.print("normal");
                    }
                %>">
        User Management
    </a>
    <a onclick="redirect(frmIndex, '<%=Constants.ADMIN_PAGE_NAME%>',
        '<%=Constants.POSITION_PAGE_NAME%>', '<%=Constants.POSITION_LIST%>')"
        class="<%   if(Constants.POSITION_PAGE_NAME.equalsIgnoreCase(subPageName)) {
                        out.print("select");
                    } else {
                        out.print("normal");
                    }
                %>">
        Position
    </a>
    <a onclick="redirect(frmIndex, '<%=Constants.ADMIN_PAGE_NAME%>',
        '<%=Constants.PROJECT_STATUS_PAGE_NAME%>', '<%=Constants.PROJECT_STATUS_LIST%>')"
        class="<%   if(Constants.PROJECT_STATUS_PAGE_NAME.equalsIgnoreCase(subPageName)) {
                        out.print("select");
                    } else {
                        out.print("normal");
                    }
                %>">
        Project Status
    </a>
    <a onclick="redirect(frmIndex, '<%=Constants.ADMIN_PAGE_NAME%>',
        '<%=Constants.LOG_STATUS_PAGE_NAME%>', '<%=Constants.LOG_STATUS_LIST%>')"
        class="<%   if(Constants.LOG_STATUS_PAGE_NAME.equalsIgnoreCase(subPageName)) {
                        out.print("select");
                    } else {
                        out.print("normal");
                    }
                %>">
        Log Status
    </a>
    <a onclick="redirect(frmIndex, '<%=Constants.ADMIN_PAGE_NAME%>',
        '<%=Constants.LOG_TYPE_PAGE_NAME%>', '<%=Constants.LOG_TYPE_LIST%>')"
        class="<%   if(Constants.LOG_TYPE_PAGE_NAME.equalsIgnoreCase(subPageName)) {
                        out.print("select");
                    } else {
                        out.print("normal");
                    }
                %>">
        Log Type
    </a>
    <a onclick="redirect(frmIndex, '<%=Constants.ADMIN_PAGE_NAME%>',
        '<%=Constants.PRIORITY_PAGE_NAME%>', '<%=Constants.PRIORITY_LIST%>')"
        class="<%   if(Constants.PRIORITY_PAGE_NAME.equalsIgnoreCase(subPageName)) {
                        out.print("select");
                    } else {
                        out.print("normal");
                    }
                %>">
        Priority
    </a>
    <a onclick="redirect(frmIndex, '<%=Constants.ADMIN_PAGE_NAME%>',
        '<%=Constants.SEVERITY_PAGE_NAME%>', '<%=Constants.SEVERITY_LIST%>')"
        class="<%   if(Constants.SEVERITY_PAGE_NAME.equalsIgnoreCase(subPageName)) {
                        out.print("select");
                    } else {
                        out.print("normal");
                    }
                %>">
        Severity
    </a>
</div>
<div id="main-page">
    <%
    if(Constants.COMPANY_INFO_PAGE_NAME.equalsIgnoreCase(subPageName)) {
        %>
        <%@include file="companyinfo.jsp"%>
        <%
    } else if(Constants.PROJECT_MANAGEMENT_PAGE_NAME.equalsIgnoreCase(subPageName)) {
        %>
        <%@include file="project\index.jsp"%>
        <%
    } else if(Constants.USER_MANAGEMENT_PAGE_NAME.equalsIgnoreCase(subPageName)) {
        %>
        <%@include file="employee/index.jsp"%>
        <%
    } else if(Constants.POSITION_PAGE_NAME.equalsIgnoreCase(subPageName)) {
        %>
        <%@include file="position/index.jsp"%>
        <%
    } else if(Constants.PROJECT_STATUS_PAGE_NAME.equalsIgnoreCase(subPageName)) {
        %>
        <%@include file="projectstatus/index.jsp"%>
        <%
    } else if(Constants.LOG_STATUS_PAGE_NAME.equalsIgnoreCase(subPageName)) {
        %>
        <%@include file="log-status/index.jsp"%>
        <%
    } else if(Constants.LOG_TYPE_PAGE_NAME.equalsIgnoreCase(subPageName)) {
        %>
        <%@include file="log-type/index.jsp"%>
        <%
    } else if(Constants.PRIORITY_PAGE_NAME.equalsIgnoreCase(subPageName)) {
        %>
        <%@include file="priority/index.jsp"%>
        <%
    } else if(Constants.SEVERITY_PAGE_NAME.equalsIgnoreCase(subPageName)) {
        %>
        <%@include file="severity/index.jsp"%>
        <%
    } else if(Constants.LOGIN_ADMIN_PAGE_NAME.equalsIgnoreCase(subPageName)) {
        %>
        <%@include file="../Login/login.jsp"%>
        <%
    }
    %>
</div>
<div style="clear: both"></div>